package com.magic.smartcity.interfaces;

import com.magic.smartcity.beans.NewsCategoryBean;
import com.magic.smartcity.beans.PressBean;
import com.magic.smartcity.beans.TocationBean;

import java.util.List;

public interface INewsCallBack{
    /**
     * 将获得的数据渲染在UI上
     *
     * @param pressList
     */
    void NewsLoaded(List<PressBean.RowsBean> pressList);

    /**
     * 将获得首页轮播图渲染在UI上
     *
     * @param tocationList
     */
    void NewsTocation(List<TocationBean.RowsBean> tocationList);

    void NewsCategoryLoaded(List<NewsCategoryBean.DataBean> dataBeanList);

    /**
     * 如果出错
     *
     * @param str
     */
    void error(String str);
}
